import React, { Component } from 'react';
import List from '../components/List'
import "./less/Fast.less"
import {FastShuatiApi} from '../request/api'

class Fast extends Component {
    state = {
        exemItems: []
    }
    render() {
        return (
            <div className="fast_page">
                <List btnName="刷题" exemItems={this.state.exemItems} />
            </div>
        );
    }
    componentDidMount(){
        FastShuatiApi().then(res=>{
            if(res.errCode===0){
                this.setState({
                    exemItems: res.data.records
                })
            }
        })
    }
}

export default Fast;
